<h1><?=$this->translate->_('admin_permission_header')?></h1>

<?=$this->form?>

<h2><?=$this->translate->_('admin_permission_list')?></h2>
<br />
<table class="table_boards" width="100%">
	<tr>
		<th width="90%"><?=$this->translate->_('admin_permission_board')?></th>
		<th><?=$this->translate->_('admin_permission_access')?></th>
		<th><?=$this->translate->_('admin_permission_mod')?></th>
		<th></th>
	</tr>
	<?if($this->perms_count > 0):?>
		<?foreach($this->perms_res AS $result):?>
			<tr>
				<td><?if($result['board_uid'] == 'all'): echo $this->translate->_('admin_permission_allboard'); else: echo $this->escape($result['title']); endif;?></td>
				<td class="center"><a href="<?=$this->baseUrl()?>/backend/set_access-<?=$result['uid']?>.html"><img src="<?=$this->baseUrl()?>/static/gfx/<?=$result['has_access']?>.png" style="border:0px;" /></a></td>
				<td class="center"><a href="<?=$this->baseUrl()?>/backend/set_mod-<?=$result['uid']?>.html"><img src="<?=$this->baseUrl()?>/static/gfx/<?=$result['is_moderator']?>.png" style="border:0px;" /></a></td>
				<td class="center"><a href="<?=$this->baseUrl()?>/backend/del_access-<?=$result['uid']?>.html" onclick="return confirm('<?=$this->translate->_('admin_permission_confirm')?>');"<img src="<?=$this->baseUrl()?>/static/gfx/icons/bin_closed.png" /></td>
		<?endforeach;?>
	<?else:?>
		<tr>
			<td colspan="3">No permissions yet</td>
		</tr>
	<?endif;?>
</table>
<br />
<h2><?=$this->translate->_('admin_permission_add')?></h2>
<div id="new_permission">
	<?=$this->formPerm?>
</div>
	